const Router = require('@koa/router');
const fun = require('../controller/admin/common_house.controller');
const config = require('../config');
const router = new Router({ prefix: `${config.ADMIN_PREFIX_V2}/common_house` });

//保存入库信息
router.post('/saveHouse', fun.saveHouse);

//获取入库列表
router.get('/getHouseList', fun.getHouseList);

//获取入库详情
router.get('/getHouseDetail', fun.getHouseDetail);

//删除入库信息
router.post('/deleteHouse', fun.deleteHouse);

//更新入库信息
router.post('/updateHouse', fun.updateHouse);

//审核
router.post('/auditHouse', fun.auditHouse);

module.exports = router;
